package com.mt.roll.wms.params;


import com.mt.roll.core.base.BaseParam;
import com.mt.roll.core.validator.groups.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @auther why
 * @date 2021/7/6 9:40
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "废片等级对象", description = "用于新增和更新废片等级信息")
public class EquipmentScrapsGradeParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    /**
     * 主键，自增
     */
    @ApiModelProperty(value = "主键，更新时需要填写", example = "1")
    @NotNull(message = "废片等级ID不能为空", groups = {UpdateGroup.class})
    private Long id;

    /**
     * 设备ID
     */
    @ApiModelProperty(value = "设备ID", example = "1")
    @NotNull(message = "设备ID不能为空")
    private Long equipmentId;

    /**
     * 废片等级ID
     */
    @ApiModelProperty(value = "废片等级ID", example = "1")
    @NotNull(message = "废片等级ID不能为空")
    private Long scrapsGradeId;
}
